package com.bdan.t382.entity;

import java.io.Serializable;


public class Employee implements Serializable {
    private String name;
    private int age;
    private String position;
    public Employee() {

    }

    public Employee(String name, int age, String position) {
        this.name = name;
        this.age = age;
        this.position = position;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }
    public void introduce() {
        System.out.println("大家好，我是" + position + "岗位的" + name + "，今年" + age + "岁。");
    }
}
